<?php

namespace App\Modules\Apicrzs\Http\Controllers\Intake;

use App\Modules\Apicrzs\Http\Controllers\BaseApicrzsController;
use App\Modules\Apicrzs\Services\Users\UserWaterCardServices;
use App\Traits\CryptAES;
use Illuminate\Http\Request;

class WxPayController extends BaseApicrzsController
{

    public function __construct(UserWaterCardServices $service)
    {
        $token =  \request()->header('token');
        $user_info = CryptAES::decryptToken($token,'user_grzq');
        $this->user_id = $user_info['data']['user_id']??0;

        $this->service = $service;
    }

    public function wxpay(Request $request)
    {

        return $this->sendApiSuccess();
    }
}
